package com.computercourse.api.ucenter;

import com.computercourse.framework.domain.ucenter.ext.CicUserExt;
import com.computercourse.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by Administrator.
 */
@Api(value = "用户中心",description = "用户中心管理")
public interface UcenterControllerApi {

    @ApiOperation("根据用户账号查询用户信息")
    CicUserExt getUserext(String username);

    @ApiOperation("修改用户名")
    ResponseResult modifyUserName(String userName,String id);

    @ApiOperation("修改电话")
    ResponseResult modifyUserPhone(String userPhone,String id);

    @ApiOperation("修改密码")
    ResponseResult modifyUserPassword(String userPassword,String id);

    @ApiOperation("修改邮箱")
    ResponseResult modifyUserEmail(String userEmail,String id);

    @ApiOperation("绑定QQ")
    ResponseResult modifyUserQQ(String userQQ,String id);


    @ApiOperation("修改头像")
    ResponseResult uploadUserImage(MultipartFile multipartFile, String id) throws Exception;


}
